\(\int \frac {a+b \text {csch}(c+d \sqrt {x})}{\sqrt {x}} \, dx\) [53]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [B] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [B] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 20, antiderivative size = 26 \[ \int \frac {a+b \text {csch}\left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=2 a \sqrt {x}-\frac {2 b \text {arctanh}\left (\cosh \left (c+d \sqrt {x}\right )\right )}{d} \]

[Out]

-2*b*arctanh(cosh(c+d*x^(1/2)))/d+2*a*x^(1/2)

Rubi [A] (verified)

Time = 0.02 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {14, 5545, 3855} \[ \int \frac {a+b \text {csch}\left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=2 a \sqrt {x}-\frac {2 b \text {arctanh}\left (\cosh \left (c+d \sqrt {x}\right )\right )}{d} \]

[In]

Int[(a + b*Csch[c + d*Sqrt[x]])/Sqrt[x],x]

[Out]

2*a*Sqrt[x] - (2*b*ArcTanh[Cosh[c + d*Sqrt[x]]])/d

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 3855

Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]

Rule 5545

Int[((a_.) + Csch[(c_.) + (d_.)*(x_)^(n_)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simpli
fy[(m + 1)/n] - 1)*(a + b*Csch[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IGtQ[Simplif
y[(m + 1)/n], 0] && IntegerQ[p]

Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {a}{\sqrt {x}}+\frac {b \text {csch}\left (c+d \sqrt {x}\right )}{\sqrt {x}}\right ) \, dx \\ & = 2 a \sqrt {x}+b \int \frac {\text {csch}\left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx \\ & = 2 a \sqrt {x}+(2 b) \text {Subst}\left (\int \text {csch}(c+d x) \, dx,x,\sqrt {x}\right ) \\ & = 2 a \sqrt {x}-\frac {2 b \text {arctanh}\left (\cosh \left (c+d \sqrt {x}\right )\right )}{d} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.10 (sec) , antiderivative size = 52, normalized size of antiderivative = 2.00 \[ \int \frac {a+b \text {csch}\left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=\frac {2 \left (a \left (c+d \sqrt {x}\right )-b \log \left (\cosh \left (\frac {1}{2} \left (c+d \sqrt {x}\right )\right )\right )+b \log \left (\sinh \left (\frac {1}{2} \left (c+d \sqrt {x}\right )\right )\right )\right )}{d} \]

[In]

Integrate[(a + b*Csch[c + d*Sqrt[x]])/Sqrt[x],x]

[Out]

(2*(a*(c + d*Sqrt[x]) - b*Log[Cosh[(c + d*Sqrt[x])/2]] + b*Log[Sinh[(c + d*Sqrt[x])/2]]))/d

Maple [A] (verified)

Time = 0.26 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.00

method result size
derivativedivides \(2 a \sqrt {x}+\frac {2 b \ln \left (\tanh \left (\frac {c}{2}+\frac {d \sqrt {x}}{2}\right )\right )}{d}\) \(26\)
default \(2 a \sqrt {x}+\frac {2 b \ln \left (\tanh \left (\frac {c}{2}+\frac {d \sqrt {x}}{2}\right )\right )}{d}\) \(26\)
parts \(2 a \sqrt {x}+\frac {2 b \ln \left (\tanh \left (\frac {c}{2}+\frac {d \sqrt {x}}{2}\right )\right )}{d}\) \(26\)

[In]

int((a+b*csch(c+d*x^(1/2)))/x^(1/2),x,method=_RETURNVERBOSE)

[Out]

2*a*x^(1/2)+2*b/d*ln(tanh(1/2*c+1/2*d*x^(1/2)))

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 55 vs. \(2 (22) = 44\).

Time = 0.28 (sec) , antiderivative size = 55, normalized size of antiderivative = 2.12 \[ \int \frac {a+b \text {csch}\left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=\frac {2 \, {\left (a d \sqrt {x} - b \log \left (\cosh \left (d \sqrt {x} + c\right ) + \sinh \left (d \sqrt {x} + c\right ) + 1\right ) + b \log \left (\cosh \left (d \sqrt {x} + c\right ) + \sinh \left (d \sqrt {x} + c\right ) - 1\right )\right )}}{d} \]

[In]

integrate((a+b*csch(c+d*x^(1/2)))/x^(1/2),x, algorithm="fricas")

[Out]

2*(a*d*sqrt(x) - b*log(cosh(d*sqrt(x) + c) + sinh(d*sqrt(x) + c) + 1) + b*log(cosh(d*sqrt(x) + c) + sinh(d*sqr
t(x) + c) - 1))/d

Sympy [A] (verification not implemented)

Time = 0.30 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.38 \[ \int \frac {a+b \text {csch}\left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=2 a \sqrt {x} + 2 b \left (\begin {cases} \sqrt {x} \operatorname {csch}{\left (c \right )} & \text {for}\: d = 0 \\\frac {\log {\left (\tanh {\left (\frac {c}{2} + \frac {d \sqrt {x}}{2} \right )} \right )}}{d} & \text {otherwise} \end {cases}\right ) \]

[In]

integrate((a+b*csch(c+d*x**(1/2)))/x**(1/2),x)

[Out]

2*a*sqrt(x) + 2*b*Piecewise((sqrt(x)*csch(c), Eq(d, 0)), (log(tanh(c/2 + d*sqrt(x)/2))/d, True))

Maxima [A] (verification not implemented)

none

Time = 0.19 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.96 \[ \int \frac {a+b \text {csch}\left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=2 \, a \sqrt {x} + \frac {2 \, b \log \left (\tanh \left (\frac {1}{2} \, d \sqrt {x} + \frac {1}{2} \, c\right )\right )}{d} \]

[In]

integrate((a+b*csch(c+d*x^(1/2)))/x^(1/2),x, algorithm="maxima")

[Out]

2*a*sqrt(x) + 2*b*log(tanh(1/2*d*sqrt(x) + 1/2*c))/d

Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 49 vs. \(2 (22) = 44\).

Time = 0.28 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.88 \[ \int \frac {a+b \text {csch}\left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=\frac {2 \, {\left (d \sqrt {x} + c\right )} a}{d} - \frac {2 \, b \log \left (e^{\left (d \sqrt {x} + c\right )} + 1\right )}{d} + \frac {2 \, b \log \left ({\left | e^{\left (d \sqrt {x} + c\right )} - 1 \right |}\right )}{d} \]

[In]

integrate((a+b*csch(c+d*x^(1/2)))/x^(1/2),x, algorithm="giac")

[Out]

2*(d*sqrt(x) + c)*a/d - 2*b*log(e^(d*sqrt(x) + c) + 1)/d + 2*b*log(abs(e^(d*sqrt(x) + c) - 1))/d

Mupad [B] (verification not implemented)

Time = 2.22 (sec) , antiderivative size = 47, normalized size of antiderivative = 1.81 \[ \int \frac {a+b \text {csch}\left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=2\,a\,\sqrt {x}-\frac {4\,\mathrm {atan}\left (\frac {b\,{\mathrm {e}}^{d\,\sqrt {x}}\,{\mathrm {e}}^c\,\sqrt {-d^2}}{d\,\sqrt {b^2}}\right )\,\sqrt {b^2}}{\sqrt {-d^2}} \]

[In]

int((a + b/sinh(c + d*x^(1/2)))/x^(1/2),x)

[Out]

2*a*x^(1/2) - (4*atan((b*exp(d*x^(1/2))*exp(c)*(-d^2)^(1/2))/(d*(b^2)^(1/2)))*(b^2)^(1/2))/(-d^2)^(1/2)